## ======================================================================== ##
## Copyright 2009-2018 Intel Corporation                                    ##
##                                                                          ##
## Licensed under the Apache License, Version 2.0 (the "License");          ##
## you may not use this file except in compliance with the License.         ##
## You may obtain a copy of the License at                                  ##
##                                                                          ##
##     http://www.apache.org/licenses/LICENSE-2.0                           ##
##                                                                          ##
## Unless required by applicable law or agreed to in writing, software      ##
## distributed under the License is distributed on an "AS IS" BASIS,        ##
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ##
## See the License for the specific language governing permissions and      ##
## limitations under the License.                                           ##
## ======================================================================== ##

INCLUDE(tutorial)
ADD_TUTORIAL(pathtracer)
IF (EMBREE_RAY_PACKETS)
  ADD_TUTORIAL_ISPC(pathtracer)
ENDIF()

IF (EMBREE_TESTING_INTENSITY GREATER 1)
  IF (NOT ${EMBREE_RAY_PACKETS})
    SET(DISABLE_ISPC_TEST ON)
  ENDIF()
  ADD_EMBREE_MODELS_TEST(pathtracer pathtracer pathtracer)
  ADD_EMBREE_MODELS_TEST(pathtracer_coherent pathtracer pathtracer --coherent)
  ADD_EMBREE_MODELS_TEST(pathtracer_incoherent pathtracer pathtracer --incoherent)
ENDIF()

